package com.dd.ent.car.common.bean.note;

import com.dd.ent.car.common.bean.User;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * 作者：Sendtion on 2016/10/24 0024 15:00
 * 邮箱：sendtion@163.com
 * 博客：http://sendtion.cn
 * 描述：笔记实体类
 */
@DatabaseTable(tableName = "tb_note")
public class Note implements Serializable {
    @DatabaseField(generatedId = true)
    private int id;//笔记ID
    @DatabaseField
    private String uuid;//唯一识别
    @DatabaseField
    private String title;//笔记标题
    @DatabaseField
    private String content;//笔记内容
    @DatabaseField
    private int type;//笔记类型，1纯文本，2Html，3Markdown
    @DatabaseField
    private String bgColor;//背景颜色，存储颜色代码
    @DatabaseField
    private int isEncrypt;//是否加密，0未加密，1加密
    @DatabaseField
    private String createTime;//创建时间
    @DatabaseField
    private String updateTime;//修改时间
    @DatabaseField
    private long commentCount;//评论个数
    @DatabaseField
    private long visitCount;//浏览次数
    private User user;


    public Note(){
        type=2;
        bgColor="#FFFFFF";
        isEncrypt=0;
    }
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getBgColor() {
        return bgColor;
    }

    public void setBgColor(String bgColor) {
        this.bgColor = bgColor;
    }

    public int getIsEncrypt() {
        return isEncrypt;
    }

    public void setIsEncrypt(int isEncrypt) {
        this.isEncrypt = isEncrypt;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public long getCommentCount() {
        return commentCount;
    }

    public void setCommentCount(long commentCount) {
        this.commentCount = commentCount;
    }

    public long getVisitCount() {
        return visitCount;
    }

    public void setVisitCount(long visitCount) {
        this.visitCount = visitCount;
    }
}
